home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility3 / mhelpvb.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-10-08  |  4KB  |  146 lines

  1. echo off
  2. cls
  3. echo     MicroHelp Demonstration Installation for Visual Basic
  4. echo.
  5. echo.
  6. if "%1" == "" goto NoPath
  7. if "%2" == "" goto NoPath
  8. echo Ready to install on your hard disk. Press ^C to abort or
  9. pause
  10. echo.
  11. echo Attempting to create \MHDEMOS directory on your hard disk. If this
  12. echo directory already exists, DOS will issue an error message, but you
  13. echo can ignore the message.
  14. echo.
  15. md %1
  16. md %1\MHDEMOS
  17. copy read.me %1\MHDEMOS
  18. echo.
  19. echo.
  20. echo Attempting to create subdirectory(s) for the demo(s) you have
  21. echo selected. If the directory already exists, DOS will issue an 
  22. echo error message, but you can ignore the message.
  23. echo.
  24. if "%2"=="ALL" goto F
  25. if "%2"=="all" goto F
  26. if "%2"=="U" goto U
  27. if "%2"=="u" goto U
  28. if "%2"=="V" goto V
  29. if "%2"=="v" goto V
  30. if "%2"=="C" goto C
  31. if "%2"=="c" goto C
  32. if "%2"=="X" goto X
  33. if "%2"=="x" goto x
  34. if "%2"=="F" goto F
  35. if "%2"=="f" goto F
  36. goto NoPath
  37. :F
  38. md %1\MHDEMOS\CUSCON
  39. CUSCON /e%1\MHDEMOS\CUSCON
  40. if errorlevel 1 goto error
  41. if "%2"=="F" goto Finished
  42. if "%2"=="f" goto Finished
  43. :C
  44. md %1\MHDEMOS\VBCOMM
  45. VBCOMM /e%1\MHDEMOS\VBCOMM
  46. if errorlevel 1 goto error
  47. if "%2"=="C" goto Finished
  48. if "%2"=="c" goto Finished
  49. :V
  50. md %1\MHDEMOS\VBTOOLS
  51. VBTOOLS2 /e%1\MHDEMOS\VBTOOLS
  52. if errorlevel 1 goto error
  53. if "%2"=="V" goto Finished
  54. if "%2"=="v" goto Finished
  55. :X
  56. md %1\MHDEMOS\VBXREF
  57. VBXDEM /e%1\MHDEMOS\VBXREF
  58. if errorlevel 1 goto error
  59. if "%2"=="X" goto Finished
  60. if "%2"=="x" goto Finished
  61. :U
  62. md %1\MHDEMOS\VBMUSCLE
  63. VBMUSCLE /e%1\MHDEMOS\VBMUSCLE
  64. if errorlevel 1 goto error
  65. :Finished
  66. if "%2"=="n" goto VBRUNFINAL
  67. if "%2"=="N" goto VBRUNFINAL
  68. if "%2"=="c" goto VBRUNFINAL
  69. if "%2"=="C" goto VBRUNFINAL
  70. :DLLS
  71. VBT2RT /e%1\MHDEMOS
  72. echo.
  73. echo Please copy the MH??200.VBX files from %1\MHDEMOS 
  74. echo to a directory in your path
  75. echo.
  76. echo               ***** CAUTION *****
  77. echo.
  78. echo If you are already a user of VBTools 2, the MH??200.VBX files
  79. echo are the *RUNTIME* versions. If you have already installed
  80. echo VBTOOLS 2, you can delete the DLL's by issuing the following
  81. echo command from the DOS prompt:
  82. echo.
  83. echo       DEL %1\MHDEMOS\MH??200.VBX
  84. echo.
  85. :VBRUNFINAL
  86. pause
  87. cls
  88. if "%2"=="F" goto CUSCON
  89. if "%2"=="f" goto CUSCON
  90. if "%2"=="X" goto CUSCON
  91. if "%2"=="x" goto CUSCON
  92. if "%2"=="ALL" goto CUSCON
  93. if "%2"=="all" goto CUSCON
  94. GOTO ALLVB
  95. :CUSCON
  96. COMMDLG /e%1\MHDEMOS
  97. if errorlevel 1 goto error
  98. echo.
  99. echo Please be sure to copy VBT200.HLP from the
  100. echo %1\MHDEMOS directory to your Windows directory!
  101. :ALLVB
  102. echo.
  103. echo In order to run the demos for Visual Basic products, your system 
  104. echo must have the file VBRUN100.DLL in your PATH. If you don't already
  105. echo have Visual Basic, you can download VBRUN100.DLL from many BBS's
  106. echo around the country. In addition, the file is available from the
  107. echo following locations:
  108. echo.
  109. echo     CompuServe: GO MSBASIC
  110. echo                 LIB 5
  111. echo                 D VBRUN.ZIP 
  112. echo.
  113. echo     MicroHelp BUG BBS: 
  114. echo                 9600+ baud: (404) 516-1497
  115. echo             300-2400  baud: (404) 516-1397
  116. echo.
  117. echo             From the main menu prompt, type:
  118. echo.
  119. echo                 D VBRUN.ZIP
  120. :Fin2
  121. echo.
  122. echo Installation of the demo(s) is complete! 
  123. goto end
  124. :error
  125. echo                            **** E R R O R ****
  126. echo.
  127. echo     An error occurred during the installation. Most likely, your
  128. echo     hard disk is full. Please correct the problem and run the INSTALL
  129. echo     batch file again.
  130. echo.
  131. goto end
  132. :NoPath
  133. echo.
  134. echo     Insert the demonstration diskette in drive A: and close the
  135. echo     latch. Next, log onto drive A: by typing 'A:' followed by [Enter].
  136. echo.
  137. echo.
  138. echo     Syntax:   INSTALL Drive: Option
  139. echo.
  140. echo     Where 'Drive:' is the drive letter of the hard disk
  141. echo     drive where you wish to install this product.
  142. echo.
  143. echo     See the READ.ME file for installation options.
  144. echo.
  145. :end
  146.